<template>
	<!-- 规格 -->
	<view class="cu-modal bottom-modal" @touchmove.stop.prevent="" :class="{ show: showModal }"
		@tap="closeshowModal">
		<view class="cu-dialog" @tap.stop style="border-radius: 30rpx 30rpx 0 0;">
			<view class="shop-modal page_box" :style="goodsInfo.is_sku == 0 ? 'height:700rpx' : ''">
		 
				<image class="u-iconfont close-icon" src="https://image.hzwltb69.com/app/images/closesku.png" mode="aspectFill" @tap="closeshowModal"></image>
				<!-- 商品卡片-->
				<view class="top u-flex modal-head__box">
					<image class="shop-img"
                 @click="onImg(currentSkuPrice.skuImages)"
                 :src="currentSkuPrice.skuImages ||
                  currentSkuPrice.img ||
                   JSON.parse(goodsInfo.productImages)[0].source" mode="aspectFill"></image>
					<view class=" goods-box u-flex-col u-row-between">
						<view class="goods-title u-ellipsis-2">{{ goodsInfo.name }}</view>
						<view class="u-flex u-row-between goods-bottom">
							<view class="price-box u-flex">
								<!--<view v-if="goodsType === 'score'">{{ currentSkuPrice.price_text || goodsInfo.price }}
								</view>
								 <view v-else-if="grouponBuyType === 'groupon'">
									￥{{ currentSkuPrice.groupon_price || (goodsInfo.activity_type === 'groupon' ? goodsInfo.groupon_price : goodsInfo.price) }}
								</view> -->
								<view>￥{{currentSkuPrice.price.toFixed(2)}}</view>
							</view>
							<text class="stock">库存{{ currentSkuPrice.stock-currentSkuPrice.allocatedStock}}件</text>
						</view>
					</view>
				</view>
				<!-- 规格选项 -->
				<scroll-view scroll-y class="content_box">
					<view class="select-box u-flex-col u-row-left"
					 v-for="s, x in goodsInfo.specificationItems"
						:key="x">
						<view class="type-title u-flex">{{ s.name }}</view>
						<view class="tag-box u-flex u-flex-wrap">
							<button
							 class="tag u-reset-button"
							 v-if="sc.isSelected"
							  v-for="sc, index in s.entries"
							   :key="index"
								:class="{ 'tag-active': currentSkuArray[x] == sc.id,
								'tag-disabled': sc.stockDisabled || sc.disabled }"
								:disabled="  sc.stockDisabled || sc.disabled" @tap="chooseSku(x, sc.id,index)">
								{{ sc.value }}
								<div v-show="false">{{ JSON.stringify(sc.pid) }}{{ sc.disabled }}{{ sc.stockDisabled }}</div>
							</button>
						</view>
					</view>

					<!-- 计步器 -->
					<view class="buy-num-box u-flex u-row-between">
						<view class="num-title">购买数量</view>
						<u-number-box
						v-model="goodsNum"
						:min="minNum"
						:step="setup"
						:max="maxStep"
						@plus="plus"
						:long-press="false"
						:disabled="disabled"
						@change="changeNum">
					</u-number-box>
					</view>
				</scroll-view>

				<!-- 功能按钮 -->
				<view class="btn-box foot_box u-flex u-row-between" v-if="buyType === 'cart' || buyType === 'buy'">
					<button class="u-reset-button cu-btn save-btn ljshop-btn"
						v-if="(activityRules && activityRules.status === 'ing') || !goodsInfo.activity_type"
						@tap="confirm">确认</button>
					<button class="u-reset-button cu-btn cancel-btn ljshop-btn"
						v-if="activityRules && activityRules.status !== 'ing' && goodsInfo.activity_type"
						@tap="confirm">确定</button>
				</view>
				<view class="btn-box foot_box u-flex u-row-between" v-else>
					<button class="u-reset-button cu-btn  cart-btn" @tap="confirmCart">加入购物车</button>
					<button class="u-reset-button cu-btn  buy-btn" @tap="confirmBuy">立即购买</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	/**
	 * 多规格组件
	 * @property {Object} goodsInfo - 商品数据
	 * @property {Boolean} value = showModal - 显隐
	 * @property {String} buyType  - 购买方式
	 * @property {String} goodsType - 商品类别
	 * @property {String} grouponBuyType -拼团商品购买方式
	 * @property {Number} grouponId - 拼团ID,分享进入
	 * @property {Object} activityRules - 活动状态。
	 */
	import {
		mapMutations,
		mapActions,
		mapState
	} from 'vuex';
	export default {
		components: {},
		data() {
			return {
				maxStep: 999,
				skuList: [],
				currentSkuPrice: {
					price:0
				},
				currentSkuArray: [],
				goodsNum: 1,
				confirmGoodsInfo: {},
				type: this.buyType,
				// 用于初次进入判断选择的sku是否有货
				// selectedSku: 0,
				activitySku:[],
                setNum: 6,
				// 默认选中的规格ID
				defaultSkuId:0,
			};
		},
		props: {
			goodsInfo: {
				default:{}
			},
			activityRules: {},
			value: {},
			disabled:{
				type: Boolean,
				default: false
			},
			newPrice:{
				type:Number,
				default: 0
			},
			buyType: {
				type: String,
				default: 'sku'
			},
			goodsType: {
				type: String,
				default: 'goods'
			},
			grouponBuyType: {
				type: String,
				default: 'alone'
			},
			grouponId: {
				//参加拼团的时候，传入当前团id;
				type: Number,
				default: 0
			},
			minNum:{
				type:Number,
				default:1
			},
			setup:{
				type:Number,
				default: 1
			},
			shareUId:{
				type:String,
				default:''
			}
		},
		created() {
			this.skuList = this.goodsInfo.Sku;
			this.goodsInfo.activitySku ? this.activitySku = this.goodsInfo.activitySku : [];
			this.setdefsku();
			this.changeDisabled();

		},
		mounted() {
			// 单规格选项
			if (!this.goodsInfo.is_sku) {
				if(this.activitySku.length > 0){
					let indexs = 0
					this.activitySku.forEach((item,index) =>{
						if(item.specificationValues.length){
							if(item.specificationValues[0].id == this.goodsInfo.defaultSku.specificationValues[0].id) indexs = index
							this.currentSkuPrice = this.activitySku[indexs]
						}else{
							this.currentSkuPrice = this.activitySku[0]
						}
						
					})
				}else{
					this.currentSkuPrice = this.goodsInfo.defaultSku
				}
				//this.maxStep = this.skuPrice[0].stock > 999 ? 999 : this.skuPrice[0].stock;
			}
            this.minNum > 1 ? this.goodsNum = this.minNum : this.goodsNum = 1
            this.setup > 1 ? this.setNum = this.setup : this.setNum = 1
		},
		watch: {
			type(nweVal, oldVal) {
				return newVal;
			}
		},
		computed: {
			skuPrice() {
				return this.goodsInfo.sku_price || [];
			},
			showModal: {
				get() {
					return this.value;
				},
				set(val) {
					val ? uni.hideTabBar() : uni.showTabBar();
					this.$emit('input', val);
					return val;
				}
			},

		},

		methods: {
			onImg(e){
				uni.previewImage({
					urls: [e],
					current: e
				})
			},
			...mapActions(['addCartGoods', 'getCartList']),
			jump(path, parmas) {
				this.$Router.push({
					path: path,
					query: parmas
				});
			},
			closeshowModal(){
			 this.showModal = false;
			},
			setdefsku(){
				let defspecificationValues = this.goodsInfo.defaultSku.specificationValues;
				//寻找默认规格在规格列表中的位置
				let foundIndex = this.goodsInfo.Sku.findIndex(object => object.id === this.goodsInfo.defaultSku.id);
				//判断规格组是否有库存
				if(this.goodsInfo.Sku[foundIndex].stock <= 0){
					// return
					//先将没有库存的规格组置灰
					for(var i in this.goodsInfo.Sku[foundIndex].specificationValues){
						if(i != 0){
							for(var k in this.goodsInfo.specificationItems[i].entries){
								if(this.goodsInfo.specificationItems[i].entries[k].id == this.goodsInfo.Sku[foundIndex].specificationValues[i].id){
									this.$set(this.goodsInfo.specificationItems[i].entries[k],'stockDisabled',true)
								}else{
									this.$set(this.goodsInfo.specificationItems[i].entries[k],'stockDisabled',false)
								}
							}
						}
					}
					for(var i in this.goodsInfo.Sku){
						if(this.goodsInfo.Sku[i].stock > 0){
							defspecificationValues = this.goodsInfo.Sku[i].specificationValues
							this.goodsInfo.defaultSku = this.goodsInfo.Sku[i]
							break
						}
					}
				}
				for(let i = 0;i < defspecificationValues.length;i++){
					this.currentSkuArray.push(defspecificationValues[i].id)
				}
				this.defaultSkuId = this.currentSkuArray[0]
				//筛选规格拥有的尺码
				if(this.goodsInfo.specificationItems.length == 2){
					for(var i in this.goodsInfo.specificationItems[1].entries){
						let arr = []
						for(var k in this.goodsInfo.Sku){
							if(this.goodsInfo.Sku[k].specifications[1] === this.goodsInfo.specificationItems[1].entries[i].value){
								arr.push(this.goodsInfo.Sku[k].specificationValues[0].id)
								// this.goodsInfo.specificationItems[1].entries[i].pid = []
								this.$set(this.goodsInfo.specificationItems[1].entries[i],'pid',arr)
							}
						}
					}
					this.sizeDisabled()
				}else if(this.goodsInfo.specificationItems.length == 1){
					//将没有库存的规格组置灰
					for(var i in this.goodsInfo.Sku){
						if(this.goodsInfo.Sku[i].stock <= 0){
							for(var k in this.goodsInfo.specificationItems[0].entries){
								if(this.goodsInfo.specificationItems[0].entries[k].id == this.goodsInfo.Sku[i].specificationValues[0].id){
									this.$set(this.goodsInfo.specificationItems[0].entries[k],'stockDisabled',true)
								}
							}
						}
					}
				}
			},
			//尺码置灰
			sizeDisabled(){
				for(var i in this.goodsInfo.specificationItems[1].entries){
					if(this.goodsInfo.specificationItems[1].entries[i].pid.indexOf(this.defaultSkuId) == -1){
						this.$set(this.goodsInfo.specificationItems[1].entries[i],'disabled',true)
					}else{
						this.$set(this.goodsInfo.specificationItems[1].entries[i],'disabled',false)
					}
				}
			},
			// 选择规格
			chooseSku(pid, skuId,num) {
				if(pid == 0  && this.goodsInfo.specificationItems.length == 2){
					this.defaultSkuId = skuId
					this.sizeDisabled()
				}
				let that = this;
				let isChecked = true; // 选中 or 取消选中
				this.goodsNum = 1; //选择规格时，数量重置为1.
				this.maxStep = 999; //选择其他规格时，取消上个规格库
				if (that.currentSkuArray[pid] != undefined && that.currentSkuArray[pid] == skuId) {
					// 点击已被选中的，删除并填充 ''
					isChecked = false;
					that.currentSkuArray.splice(pid, 1, '');
				} else {
					// 选中
					that.$set(that.currentSkuArray, pid, skuId);
				}
				if(this.goodsInfo.specificationItems.length > 1){
					this.chekSkuStock(pid)
				}
				let chooseSkuId = []; // 选中的规格大类
				that.currentSkuArray.forEach(sku => {
					if (sku != '') {
						// sku 为空是反选 填充的
						chooseSkuId.push(sku);
					}
				});
				// 当前所选规格下，所有可以选择的 skuPric
				//let newPrice = this.getCanUseSkuPrice();
				if (that.currentSkuArray.length == that.goodsInfo.specificationItems.length) {
					if(that.activitySku.length > 0){
						for (let i = 0; i < that.activitySku.length; i++) {
						let nowSku = [];
						for (let k = 0; k < that.activitySku[i].specificationValues.length; k++) {
							nowSku.push(that.activitySku[i].specificationValues[k].id)
						}
					
						if (that.currentSkuArray.toString() == nowSku.toString()) {
							that.currentSkuPrice = that.activitySku[i]
							break;
						}
					}
					}else{
						for (let i = 0; i < that.skuList.length; i++) {
						let nowSku = [];
						for (let k = 0; k < that.skuList[i].specificationValues.length; k++) {
							nowSku.push(that.skuList[i].specificationValues[k].id)
						}
					
						if (that.currentSkuArray.toString() == nowSku.toString()) {
							that.currentSkuPrice = that.skuList[i]
							break;
						}
					}
					}
				}
				// 判断所有规格大类是否选择完成
				// 改变规格项禁用状态
				this.changeDisabled(isChecked, pid, skuId);
			},
			chekSkuStock(index){
				//拿到第一个规格的id 获取后 判断规格组是否有库存 没有 将其他规格组置灰
				//循环规格组
				for(var z in this.currentSkuArray){
					let id = this.currentSkuArray[z]
					for(var i in this.goodsInfo.Sku){
					//循环选中的规格id	currentSkuArray
											//循环sku规格组
						for(var k in this.goodsInfo.Sku[i].specificationValues){
							//目前选中的id == 规格组中的其中一个id
							if(this.goodsInfo.Sku[i].specificationValues[k].id == id){
								//拿到id 判断库存 库存为0 则置灰
								if(this.goodsInfo.Sku[i].stock <= 0){
									//这里可拿到没有库存的规格组
									for(var y in this.goodsInfo.Sku[i].specificationValues){
											for(var x in this.goodsInfo.specificationItems[y].entries){
												//大于两规格的时候
												if(this.currentSkuArray.length > 2){
													let matchingElements = this.currentSkuArray.filter(num => this.goodsInfo.Sku[i].specificationValues.some(obj => obj.id === num));
													if((this.goodsInfo.specificationItems[y].entries[x].id == this.goodsInfo.Sku[i].specificationValues[y].id) && matchingElements.length > 1 && index != y){
															if(this.currentSkuArray.indexOf(this.goodsInfo.specificationItems[y].entries[x].id) == -1){
																this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',true)
																return
															}else{
																this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',false)
															}

													}else{
															this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',false)
													}
												} else {
													//小于俩规格时的逻辑
													if((this.goodsInfo.specificationItems[y].entries[x].id == this.goodsInfo.Sku[i].specificationValues[y].id) && this.currentSkuArray.indexOf(this.goodsInfo.specificationItems[y].entries[x].id) == -1){
														this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',true)
													}else{
														this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',false)
													}
												}
											}
									}
								}else{
									for(var y in this.goodsInfo.Sku[i].specificationValues){
											for(var x in this.goodsInfo.specificationItems[y].entries){
												if(this.goodsInfo.specificationItems[y].entries[x].id == this.goodsInfo.Sku[i].specificationValues[y].id){
													this.$set(this.goodsInfo.specificationItems[y].entries[x],'stockDisabled',false)
												}
											}
									}
								}
							}
						}
					}
				}
			},
			// 改变禁用状态
			changeDisabled(isChecked = false, pid = 0, skuId = 0) {
				let newPrice = []; // 所有可以选择的 skuPrice
			 
				if (isChecked) {
					// 选中规格
					// 当前点击选中规格下的 所有可用 skuPrice
					for (let price of this.skuPrice) {
						if (price.stock <= 0) {
							// this.goodsNum 不判断是否大于当前选择数量，在 uni-number-box 判断，并且 取 stock 和 goods_num 的小值 
							continue;
						}
						if (price.goods_sku_id_arr.indexOf(skuId.toString()) >= 0) {
							newPrice.push(price);
						}
					}
				} else {
					// 取消选择规格

					// 当前所选规格下，所有可以选择的 skuPric
					newPrice = this.getCanUseSkuPrice();
				}

				// 所有存在并且有库存未选择的规格项 的 子项 id
				let noChooseSkuIds = [];
				for (let price of newPrice) {
					noChooseSkuIds = noChooseSkuIds.concat(price.goods_sku_id_arr);
				}

				// 去重
				noChooseSkuIds = Array.from(new Set(noChooseSkuIds));

				if (isChecked) {
					// 去除当前选中的规格项
					let index = noChooseSkuIds.indexOf(skuId.toString());
					noChooseSkuIds.splice(index, 1);
				} else {
					// 循环去除当前已选择的规格项
					this.currentSkuArray.forEach(sku => {
						if (sku.toString() != '') {
							// sku 为空是反选 填充的
							let index = noChooseSkuIds.indexOf(sku.toString());
							if (index >= 0) {
								// sku 存在于 noChooseSkuIds
								noChooseSkuIds.splice(index, 1);
							}
						}
					});
				}

				// 当前已选择的规格大类
				let chooseSkuKey = [];
				if (!isChecked) {
					// 当前已选择的规格大类
					this.currentSkuArray.forEach((sku, key) => {
						if (sku != '') {
							// sku 为空是反选 填充的
							chooseSkuKey.push(key);
						}
					});
				} else {
					// 当前点击选择的规格大类
					chooseSkuKey = [pid];
				}

				for (let i in this.skuList) {
					// 当前点击的规格，或者取消选择时候 已选中的规格 不进行处理
					if (chooseSkuKey.indexOf(this.skuList[i]['id']) >= 0) {
						continue;
					}

					for (let j in this.skuList[i]['content']) {
						// 如果当前规格项 id 不存在于有库存的规格项中，则禁用
						if (noChooseSkuIds.indexOf(this.skuList[i]['content'][j]['id'].toString()) >= 0) {
							this.skuList[i]['content'][j]['disabled'] = false;
						} else {
							this.skuList[i]['content'][j]['disabled'] = true;
						}
					}
				}
			},
			// 当前所选规格下，获取所有有库存的 skuPrice
			getCanUseSkuPrice() {
				let newPrice = [];
				for (let price of this.skuPrice) {
					if (price.stock <= 0) {
						// || price.stock < this.goodsNum		不判断是否大于当前选择数量，在 uni-number-box 判断，并且 取 stock 和 goods_num 的小值
						continue;
					}
					let isOk = true;
					this.currentSkuArray.forEach(sku => {
						// sku 不为空，并且，这个 条 skuPrice 没有被选中,则排除
						if (sku.toString() != '' && price.goods_sku_id_arr.indexOf(sku.toString()) < 0) {
							isOk = false;
						}
					});
					if (isOk) {
						newPrice.push(price);
					}
				}
				return newPrice;
			},

			// 数量
			changeNum(e) {
				this.changeDisabled(false);
			},
			// 增加
			plus(e) {
				if (e.value >= this.currentSkuPrice.stock) {
					this.maxStep = this.currentSkuPrice.stock;
					this.$u.toast('库存不足');
					return;
				}
				if (this.goodsInfo.activity_type === 'seckill' || this.goodsInfo.activity_type === 'groupon') {
					let rules = this.goodsInfo.activity.rules;
					if (rules.limit_buy != 0 && e.value >= rules.limit_buy) {
						this.maxStep = rules.limit_buy;
						this.$u.toast('本次活动最多购买' + rules.limit_buy + '件');
						return;
					}
				}
			},

			// 加入购物车确定
			confirmCart() {
				if (uni.getStorageSync('UId')) {
					let that = this;
					if (this.confirmSku()) {
						let confirmGoodsList = {
							list: [that.confirmGoodsInfo],
							from: 'goods'
						};
						that.addCartGoods(confirmGoodsList).then(res => {

							that.showModal = false;
							that.$u.toast("添加成功");

						});
					}
				}
			},
			// 立即购买
			confirmBuy() {
				if (uni.getStorageSync('UId')) {

					let that = this;
					that.showModal = false;

					if (this.confirmSku()) {
						let confirmGoodsList = [];
						confirmGoodsList.push(that.confirmGoodsInfo);
					 
						that.jump('/pages/order/proconfirm', {
							goodsList: confirmGoodsList,
							shareUId:uni.getStorageSync('shareUId')
						});
					}
				} else {
					// #ifdef APP-PLUS
					uni.navigateTo({
						url: "/subunimodules/uni-id-pages/pages/login/login-withoutpwd?type=" + this.loginType
					})
					// #endif
					
					// #ifdef MP-WEIXIN
					uni.showToast({
						title: '请先到个人中心登录',
						icon: 'none'
					});
					// #endif
				}

			},
			// 确定
			confirm() {
				if (this.confirmSku()) {
					switch (this.buyType) {
						case 'cart':
							this.confirmCart();
							break;
						case 'buy':
							this.confirmBuy();
							break;
						default:
					}
				}
			},
			// 确定规格
			confirmSku() {
				let that = this;
				if (that.currentSkuPrice.stock == 0 || that.currentSkuPrice.stock < that.goodsNum) {
					that.$u.toast('库存不足');
					that.showModal = false;
					return false;
				} else {
					that.currentSkuPrice.goods_num = that.goodsNum;
					that.confirmGoodsInfo = {
						count: that.currentSkuPrice.goods_num,
						skuId: that.currentSkuPrice.id,
						UId: uni.getStorageSync("UId")
					};

					if (!that.confirmGoodsInfo.skuId) {
						that.$u.toast('请选择规格');
						return false;
					} else {
						that.showModal = false;
						return true;
					}
				}
			}
		}
	};
</script>

<style lang="scss" scoped>
	.size-box {
		line-height: 82rpx;
		background: #fff;
		padding: 0 20rpx;
		margin: 20rpx 0;
		font-size: 28rpx;

		.title {
			color: #999;
			margin-right: 20rpx;
		}
	}

	// 规格
	.shop-modal {
		width: 750rpx;
		height: 950rpx;
		background: rgba(255, 255, 255, 1);
		padding: 20rpx 20rpx 30rpx;
		position: relative;
		.close-icon {
			font-size: 48rpx;
			color: #000;
			position: absolute;
			top: 20rpx;
			right: 20rpx;
			width: 40rpx;
			height: 40rpx;
		}

		// 商品卡片
		.top {
			margin: 30rpx 0;
			border-radius: 20rpx;
			padding: 20rpx;

			.shop-img {
				width: 160upx;
				height: 160upx;
				border-radius: 6upx;
				margin-right: 30upx;
				background: #ccc;
			}

			.goods-box {
				height: 160upx;
				width: 490rpx;
				align-items: flex-start;

				.goods-title {
					font-size: 28rpx;

					font-weight: 500;
					color: rgba(51, 51, 51, 1);
					line-height: 42rpx;
					text-align: left;
				}

				.goods-bottom {
					width: 100%;
				}

				.price-box {
					font-size: 36upx;

					font-weight: bold;
					color: #e1212b;

					.unit {
						font-size: 24upx;

						font-weight: bold;
						color: #e1212b;
					}
				}

				.stock {
					font-size: 26rpx;
					color: #999;
				}
			}
		}

		// 规格选项
		.select-box {
			margin-bottom: 30rpx;

			.type-title {
				font-size: 26upx;
				font-weight: 400;
				margin-bottom: 20upx;
			}

			.tag-box {
				flex-wrap: wrap;
			}

			.tag {
				line-height: 62rpx;
				background: #f4f4f4;
				border-radius: 31rpx;
				font-size: 28upx;
				font-weight: 400;
				color: #666666;
				padding: 0 30upx;
				margin-bottom: 20rpx;
				margin-right: 10rpx;
			}

			.tag-active {
				background: #f9731e;
				font-size: 28rpx;
				font-weight: 400;
				color: #ffffff;
			}

			.tag-disabled {
				background: #f8f8f8;
				color: #cacaca;
			}
		}

		.buy-num-box {
			.num-title {
				font-size: 26upx;

				font-weight: 400;
				margin-bottom: 20upx;
			}
		}
	}

	.btn-box {
		height: 100rpx;

		.cu-btn {
			width: 340rpx;
			line-height: 70rpx;
			border-radius: 35rpx;
			font-size: 28rpx;

			font-weight: 500;
			color: rgba(255, 255, 255, 0.9);
			padding: 0;
		}

		.cart-btn {
			background: #f7b655;
			box-shadow: 0px 2rpx 5rpx 0px rgba(102, 103, 104, 0.46);
		}

		.buy-btn {
			background: #f3a326 ;
			box-shadow: 0px 2rpx 5rpx 0px rgba(102, 103, 104, 0.46);
		}

		.save-btn {
			width: 710rpx;
			height: 70rpx;
			background: linear-gradient(90deg, rgba(233, 180, 97, 1), rgba(238, 204, 137, 1));
			font-size: 28rpx;
			font-weight: 500;
			color: rgba(255, 255, 255, 1);
			border-radius: 35rpx;
			padding: 0;
		}

		.cancel-btn {
			width: 710rpx;
			height: 70rpx;
			background: rgba(221, 221, 221, 1);
			font-size: 28rpx;
			font-weight: 500;
			color: #999999;
			border-radius: 35rpx;
			padding: 0;
		}
	}
</style>
